//
//  YLInvestmentUsefulController.m
//  YLFinanceService
//
//  Created by she1323 on 2017/12/12.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLInvestmentUsefulController.h"
#import "YLInvestmentCertificateModel.h"
#import "YLInvestmentTableViewCell.h"
@interface YLInvestmentUsefulController ()

@end

@implementation YLInvestmentUsefulController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"可用优惠券";
    
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.models.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    YLInvestmentTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[YLInvestmentTableViewCell cellID]];
    cell.model = self.models[indexPath.row];
    return cell;
}

@end
